package org.rcy.framework.job.registry.consul;

import com.dangdang.ddframe.job.reg.base.CoordinatorRegistryCenter;
import com.ecwid.consul.v1.ConsulClient;

import java.util.Collections;
import java.util.List;

/**
 * @author 吴康桥
 * @Description
 * @date 2023/3/10 16:53
 */


public class ConsulRegistryCenter implements CoordinatorRegistryCenter {

	private ConsulClient consulClient;

	@Override
	public String getDirectly(String s) {
		return "";
	}

	@Override
	public List<String> getChildrenKeys(String s) {
		return Collections.emptyList();
	}

	@Override
	public int getNumChildren(String s) {
		return 0;
	}

	@Override
	public void persistEphemeral(String s, String s1) {

	}

	@Override
	public String persistSequential(String s, String s1) {
		return "";
	}

	@Override
	public void persistEphemeralSequential(String s) {

	}

	@Override
	public void addCacheData(String s) {

	}

	@Override
	public void evictCacheData(String s) {

	}

	@Override
	public Object getRawCache(String s) {
		return null;
	}

	@Override
	public void init() {
		//建立与Consul连接
	}

	@Override
	public void close() {

	}

	@Override
	public String get(String s) {
		return "";
	}

	@Override
	public boolean isExisted(String s) {
		return false;
	}

	@Override
	public void persist(String s, String s1) {

	}

	@Override
	public void update(String s, String s1) {

	}

	@Override
	public void remove(String s) {

	}

	@Override
	public long getRegistryCenterTime(String s) {
		return 0;
	}

	@Override
	public Object getRawClient() {
		return null;
	}
}
